import Mock from 'mockjs';

let object = [{
		key: "/fj/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				"storeid": "123457",         // 门店id
				"roomid|4": /[0-9]{4}/,        // 房间id
				"roomname":"@cword(6,9)",
				"ms": "@cparagraph",          // 描述
				"price": /[0-9]/, // 房间单价
				"statu|1":["CD", "US", "UD", "CL"], // 房间状态
				"cover": "@image('200x200')",
				"imgs": [
					"https://bpic.588ku.com//back_origin_min_pic/19/10/22/eeb98a6f485a643fb7b6a09487ce0b1e.jpg",
					"https://bpic.588ku.com//back_origin_min_pic/23/04/23/3a9ff8944bbcd495bf13f40fa745587a.jpg"
				]
			}
		})
	},

	{
		key: "/fj/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"storeid|4": /[0-9]{4}/,         // 门店id
						"roomid|4": /[0-9]{4}/,        // 房间id
						"roomname":"@cword(6,9)",
						"ms": "@cword(6,9)",          // 描述
						"price": /[0-9]/, // 房间单价
						"roomAFlg|1":[true, false], // 房间状态
					}]
				}
			});
		}
	},
	{
		key: "/fj/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/fj/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/fj/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	
	{
		key: "/fj/mj/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						
					}]
				}
			});
		}
	},
	{
		key: "/fj/mj/info",
		method: "get",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/fj/mj/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/fj/mj/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/fj/mj/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
];

export default object;
